package com.guijq.selfcode.functioninterface;

/**
 * @author yangjf
 * @time 2019-06-06 9:31
 */
public class CaffeShop {
    IShop shop = () -> {
        System.out.println("shop say hello");
        return "";
    };
    IRestaurant restaurant = this::sayHello;

    String test() {
        System.out.println("ss");
        return "ss";
    }

    void sayHello() {
        System.out.println("res say hello");
    }


}
